import request from '@/utils/request'

export function getCpuChartData(time,agentCode) {
  return request({
    url: 'api/agentHeartbeatLog/cpuChartData?cpuTime='+time+'&agentCode='+agentCode,
    method: 'get'
  })
}
export function getRamChartData(time,agentCode) {
  return request({
    url: 'api/agentHeartbeatLog/ramChartData?ramTime='+time+'&agentCode='+agentCode,
    method: 'get'
  })
}
export function getAvgChartData(time,agentCode) {
  return request({
    url: 'api/agentHeartbeatLog/avgChartData?avgTime='+time+'&agentCode='+agentCode,
    method: 'get'
    })
}

export function getFileSysInfo(time,agentCode) {
  return request({
    url: 'api/agentHeartbeatLog/getFileSysInfo?fileSysTime='+time+'&agentCode='+agentCode,
    method: 'get'
  })
}
